﻿// ***********************************************************************
// Assembly         : INNOVACALL.Framework.Common
// Author           : Lolo
// Created          : 09-30-2013
//
// Last Modified By : Lolo
// Last Modified On : 09-30-2013
// ***********************************************************************
// <copyright file="InnovacallStandardAjaxResponseData.cs" company="">
//     Copyright (c) . All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace INNOVACALL.Framework.Common.Controllers
{
    /// <summary>
    /// Class InnovacallStandardAjaxResponseData.
    /// WARNING Members must start with a lowercase letter
    /// </summary>
    [Serializable]
    public class InnovacallStandardAjaxResponseData
    {
        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="InnovacallStandardAjaxResponseData"/> is success.
        /// </summary>
        /// <value><c>true</c> if success; otherwise, <c>false</c>.</value>
        public bool success { get; set; }
        /// <summary>
        /// Gets or sets the element automatic update.
        /// </summary>
        /// <value>The element automatic update.</value>
        public string elementToUpdate { get; set; }
        /// <summary>
        /// Gets or sets the content of the HTML.
        /// </summary>
        /// <value>The content of the HTML.</value>
        public string htmlContent { get; set; }
        /// <summary>
        /// Gets or sets the script automatic execute.
        /// </summary>
        /// <value>The script automatic execute.</value>
        public string scriptToExecute { get; set; }
        /// <summary>
        /// Gets or sets the message title.
        /// </summary>
        /// <value>The message title.</value>
        public string messageTitle { get; set; }
        /// <summary>
        /// Gets or sets the message.
        /// </summary>
        /// <value>The message.</value>
        public string message { get; set; }
        public InnovacallStandardAjaxResponseData() {
            throw new NotSupportedException("InnovacallStandardAjaxResponseData cannot be used without parameters");
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="InnovacallStandardAjaxResponseData"/> class.
        /// </summary>
        /// <param name="success">if set to <c>true</c> [success].</param>
        /// <param name="elementToUpdate">The element automatic update.</param>
        /// <param name="htmlContent">Content of the HTML.</param>
        /// <param name="scriptToExecute">The script automatic execute.</param>
        /// <param name="messageTitle">The message title.</param>
        /// <param name="message">The message.</param>
        public InnovacallStandardAjaxResponseData(
            bool success,
            string elementToUpdate,
            string htmlContent,
            string scriptToExecute,
            string messageTitle,
            string message
        ) {
            this.success = success;
            this.elementToUpdate = elementToUpdate;
            this.htmlContent = htmlContent;
            this.scriptToExecute = scriptToExecute;
            this.messageTitle = messageTitle;
            this.message = message;
        }
    }
}
